// 这个节流
export function throttle(func: Function, wait = 750) {
  let timer: number | undefined;
  return function (..._: any[]) {
    if (!timer) {
      timer = setTimeout(() => {
        func.apply(func, arguments);
        timer = undefined;
      }, wait);
    }
  };
}
